home *** CD-ROM | disk | FTP | other *** search
/ Aminet 40 / Aminet 40 (2000)(Schatztruhe)[!][Dec 2000].iso / Aminet / game / patch / zouthd.lha / Z-OutHD / Install-ZOut next >
Text File  |  2000-08-16  |  2KB  |  86 lines

  1. (set #CI_unit 0)
  2. (set #CI_drive ("DF%ld:" #CI_unit))
  3.  
  4.  
  5. ;----------------------------
  6.  
  7. ;try to figure out a place where the user usually installs his games
  8. (if (exists "Games:" (noreq) )
  9.     (set @default-dest "Games:")
  10.     (if (exists "SYS:Games" (noreq) )
  11.         (set @default-dest "SYS:Games")
  12.         (if (exists "Work:Games" (noreq) )
  13.             (set @default-dest "Work:Games")
  14.             (if (exists "JEUX:" (noreq) )
  15.                (set @default-dest "JEUX:")
  16.                (set @default-dest "SYS:")
  17.             )
  18.         )
  19.     )
  20. )
  21.  
  22. (set #defdest
  23. (askdir
  24.     (prompt ("Where should %s installed ?\nA drawer \"%s\" will automatically created." @app-name @app-name))
  25.     (help @askdir-help)
  26.     (default @default-dest)
  27.     (disk)
  28. )
  29. )
  30.  
  31. (set @default-dest #defdest)
  32.  
  33. (message "\n\n\nThis loader needs the JST program (NOT INCLUDED)\n to be copied in your path\n\n(if you don't have it already)\n\nJST is available from aminet (game/patch) or on my site")
  34.  
  35. (set #dest (tackon @default-dest @app-name))
  36.  
  37.  
  38. (makedir #dest
  39.     (help @makedir-help)
  40.     (infos)
  41. )
  42.  
  43. ;----------------------------
  44.  
  45. (copyfiles
  46.     (help @copyfiles-help)
  47.     (source "ZoutHD")
  48.     (dest #dest)
  49.     (infos)
  50. )
  51.  
  52.  
  53. (copyfiles
  54.     (help @copyfiles-help)
  55.     (source "zouthd.readme")
  56.     (dest #dest)
  57.     (infos)
  58. )
  59.  
  60. (set #CI_unit
  61.     (askchoice
  62.         (prompt "From which disk unit do you want\nto install the game")
  63.         (help    @askoptions-help)
  64.         (choices
  65.            "DF0:"
  66.            "DF1:"
  67.            "DF2:"
  68.            "DF3:"
  69.         )
  70.     )
  71. )
  72.  
  73. (set #CI_drive ("DF%ld:" #CI_unit))
  74.  
  75.  
  76. (message ("\nInsert %s disk into drive %s (ignore workbench errors)!" @app-name #CI_drive))
  77.     (if
  78.         (= 0 (run ("disk2file %ld \"%s/Z-Out.d1\" SKIPROB >con:///1000//CLOSE/WAIT" #CI_unit #dest )))
  79.         ("")
  80.         (abort "\"disk2file\" must be in your PATH !")
  81.     )
  82.  
  83.  
  84. (exit)
  85.  
  86.